package com.snack.shop.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 微信一键登录参数
 */
@Data
@Schema(description = "微信一键登录参数")
public class WxLoginParam {
    
    @NotBlank(message = "code不能为空")
    @Schema(description = "微信登录code")
    private String code;
    
    @Schema(description = "手机号获取凭证")
    private String phoneCode;
    
    @Schema(description = "手机号加密数据")
    private String encryptedData;
    
    @Schema(description = "加密算法的初始向量")
    private String iv;
    
    @Schema(description = "用户昵称")
    private String nickName;
    
    @Schema(description = "用户头像URL")
    private String avatarUrl;
    
    @Schema(description = "用户性别 0-未知 1-男 2-女")
    private Integer gender;
}
